/**
 *  ward @ 2019
 *  harrydeep@wardyan.top
 */
package top.wardyan.tool.po;

/**
 * @author ward
 *
 * 2019年2月18日
 */
public class ConfItem {

	//private String category;		// 分类 相公分类的会放在一起
	private String name;			// 中文名称
	private String code;			// 代码, 指的是=号前面那一部分
	private Integer maxLength = 0;	// 最长长度, 0: 不限制. 如果设定了本属性, 则输入时最长不超过本长度
	private Boolean required = false;	// 是否必须
	private Boolean encoded = false;	// 内容是否需要加密
	
	
	public ConfItem() {super();}
	
	public ConfItem(String name, String code, Integer maxLength, Boolean required, Boolean encoded) {
		super();
		//this.category = category;
		this.name = name;
		this.code = code;
		this.maxLength = maxLength;
		this.required = required;
		this.encoded = encoded;
	}
	
	
	public String getName() {
		return name;
	}
	public ConfItem setName(String name) {
		this.name = name;
		return this;
	}
	public String getCode() {
		return code;
	}
	public ConfItem setCode(String code) {
		this.code = code;
		return this;
	}
	public Integer getMaxLength() {
		return maxLength;
	}
	public ConfItem setMaxLength(Integer maxLength) {
		this.maxLength = maxLength;
		return this;
	}
	public Boolean getRequired() {
		return required;
	}
	public ConfItem setRequired(Boolean required) {
		this.required = required;
		return this;
	}
	public Boolean getEncoded() {
		return encoded;
	}
	public ConfItem setEncoded(Boolean encoded) {
		this.encoded = encoded;
		return this;
	}
}
